﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="KTSonline.ajax.login" %>
<% if(tk.Count == 0){%>
<table id="login" cellspacing="0" >
    <colgroup>
        <col class="col1" />
        <col class="col2" />
    </colgroup>
    <tbody>
        <tr>
            <td>Tên đăng nhập</td>
            <td><input type="text" name="username" id="login_username" /></td>
        </tr>
        <tr>
            <td>Mật khẩu</td>
            <td><input type="password" name="password" id="login_password" /></td>
        </tr>
        <tr>
            <td><a href="forgetpass.aspx" style="font-size:90%;">Quên mật khẩu?</a></td>
            <td align="right"><a href="#" id="btnlogin"><img src="images/templates/default/btnlogin.png"/></a></td>
        </tr>
    </tbody>
</table>
<p class="link"><a href="register.aspx">Đăng ký thành viên</a></p>
<%} else{ %>
<div class="welcome">Xin chào, <span class="bold"><%=tk[0].hoten %></span></div>
<ul class="userfunc">
    <li><a href="#">Thông tin cá nhân</a></li>
    <li><a href="#">Đơn hàng của bạn</a></li>
</ul>
<div class="logout"><a href="#" id="logout"><img src="images/templates/default/btnlogout.png"/></a></div>
    
<%  if (KTSonline.Global.currentpage == KTSonline.Global.Pages.CartDetail)
        Response.Write("<script type='text/javascript'>window.location.reload()</script>"); 
   } %>